﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections;
namespace MySteak
{
    class PrintSteak
    {
       public void PrintSteak1(Stack a)
        {
            while (a.Count!=0)
            {
                Console.WriteLine(a.Pop());
            }
        }
        public void PrintSteak2(Stack a)
        {
            foreach (var item in a)
            {
                Console.WriteLine(item);
            }
        }
    }
}
